package com.stu.spring.context.chapter06.event;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;

public class AppEventListener implements ApplicationListener {
	@Override
	public void onApplicationEvent(ApplicationEvent event) {
		if(event instanceof AppEvent){
			AppEvent appEvent = (AppEvent)event;
			appEvent.print();
		}
	}
}
